package com.mmall.dao;

import com.mmall.pojo.Order;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    Order selectByPrimaryKey(Integer id);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    Order selectByUserIdOrderNumber(@Param("userId") Integer userId, @Param("orderNumber") Long orderNumber);

    Order selectByOrderNumber(Long orderNumber);

    int updateSelectiveByPrimaryKey(Order record);

    List<Order> selectOrderStatusByCreateTime(@Param("status") int code,@Param("date") String date);
}